#include "Block.h"

#include <Windows.h>
#include <gl/GL.h>

Block::Block( const Position& pos ) : Quad(pos)
{
	m_height = 8;
	m_width = 10;
	m_border = true;
	setColor(1);
}

void Block::update( float frametime )
{
	
}

void Block::setSize(float width, float height){
	m_height = height;
	m_width = width;
}

void Block::setColor(int nr){
	switch(nr){
		case 1:
			m_color = Color( 0.56f, 0.29f, 0.f ); //bruin
			break;
		case 2:
			m_color = Color( 0.33f, 1.f, 0.14f ); //lichgroen
			break;
		case 3:
			m_color = Color( 1.f, 0.f, 1.f ); //paars
			break;
		case 4:
			m_color = Color( 0.f, 0.f, 1.f ); //blauw
			break;
		case 5:
			m_color = Color( 1.f, 1.f, 0.f ); //geel
			break;
		case 6:
			m_color = Color( 0.f, 1.f, 0.f ); //groen
			break;
		case 7:
			m_color = Color( 0.f, 1.f, 1.f ); //lichtblauw
			break;
		case 8:
			m_color = Color( 1.f, 0.f, 0.f ); //rood
			break;
	}
}